home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************
- | amatch - match a string against a wildcard pattern
- |----------------------------------------------------------------
- | Compares a data string against a test pattern using Bourne shell
- | wildcard rules (*not* regular expression rules).
- |
- | This routine is ugly and not well structured.
- |
- | Author: Bill Davidsen (davidsen@crdos1.crd.ge.com) Mar 24, 1985
- | with helpful suggestions from Andy Robinson
- |----------------------------------------------------------------
- | Copyright:
- | Copyright (c) 1985, 1989 by Bill Davidsen. This program may be
- | freely given, bartered, traded or sold by anyone for any
- | purpose. The supplier assumes all risk for any consequences of
- | malfunction. All other rights reserved.
- |----------------------------------------------------------------
- | Arguments:
- | 1 - address of wildcard pattern
- | 2 - address of string to test
- ****************************************************************/
-
- int amatch(register char *ts, register char *cs);
-
-